package com.seal.dao.impl;

import org.springframework.stereotype.Repository;

import com.seal.dao.BaseDaoImpl;
import com.seal.dao.ICompanyInfo2Dao;
import com.seal.model.CompanyInfo2;

@Repository("companyInfo2DaoImpl")
public class CompanyInfoDao2Impl extends BaseDaoImpl implements ICompanyInfo2Dao{

	public void addCompanyInfo2(CompanyInfo2 ca) throws Exception {
		this.save(ca);
	}

	public void updateCompanyInfo2(CompanyInfo2 ca) throws Exception {
		this.update(ca);
	}
	
	public CompanyInfo2 getCompanyInfo2ById(Long id) throws Exception {
		return (CompanyInfo2) this.select(CompanyInfo2.class, id);
	}
	
}
